package com.example.page;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

//封装分页查询结果
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class PageBean<T> {
    private Long totalCount;//总记录数
    private Integer pageSize;//每页显示记录数
    private Integer totalPage;//总页数
    private Integer pageNum;//当前页码
    private List<T> dataList;//数据
}